package com.order.distribute.pojo;

import java.io.Serializable;
import java.util.UUID;

import org.apache.commons.lang3.builder.ReflectionToStringBuilder;

import com.baomidou.mybatisplus.annotation.TableName;

import lombok.Data;
import lombok.Getter;
import lombok.Setter;
@Data
@Getter
@Setter
@TableName("t_distribute")
public class Distribute implements Serializable {
	 private static final long serialVersionUID = -7509457735448350575L;
	 private Long id;
	 private String orderNo;
	 private String distributeNo;
	 public void initDistribute(){
	        this.setDistributeNo(UUID.randomUUID().toString());
	    }

	    @Override
	    public String toString() {
	        return ReflectionToStringBuilder.toString(this);
	    }
}
